package com.bruce.ai.alibaba.agent.a2a.discovery.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

@RestController
public class HealthController {

    @GetMapping("/")
    public Map<String, Object> home() {
        Map<String, Object> response = new HashMap<>();
        response.put("application", "Agent Nacos A2A Discovery");
        response.put("status", "running");
        response.put("timestamp", LocalDateTime.now());
        response.put("description", "A2A Agent Discovery Service with Nacos Integration");
        return response;
    }

    @GetMapping("/status")
    public Map<String, Object> status() {
        Map<String, Object> response = new HashMap<>();
        response.put("status", "UP");
        response.put("timestamp", LocalDateTime.now());
        response.put("service", "agent-nacos-a2a-discovery");
        return response;
    }
}